<?php include 'header.php'; ?>

<H1> Contact Circle Point Hotels <H1>
<h4>If you need any additional information or have any special requests <br>
prior to your visit, please call us at 1.800.Circles or fill out the form below.<h4>

	<h3> Contact Form</h3>
	<form class="form-horizontal" action="send_mail.php" method="post">
	
    <div class="control-group">
	<label class="control-label" for="inputFirstName">First Name</label>
    <div class="controls">
	<input class="span3" type="Fname" required>  
    </div>
    </div>
	
	<div class="control-group">
    <label class="control-label" for="inputLastName">Last Name</label>
    <div class="controls">
    <input class="span3" type="Lname" required>  
    </div>
	</div>

	
	<div class="control-group">
	<label class="control-label" for="inputHomePhone"> Phone</label>
	<div class="controls">
    <input type = "tel" 
    pattern = "\(\d{3}\) +\d{3}-\d{4}" required /> 
    (###)###-####
	</div>
	</div>
	
	<div class="control-group">
    <label class="control-label" for="inputAddres">Address</label>
    <div class="controls">
	<input class="span3" type="address" required>  
    </div>
	</div>
	
	
	<div class="control-group">
    <label class="control-label" for="inputEmail">Email</label>
	<div class="controls">
    <input class="span3" type="email" required>  
	</div>
	</div>
	
	<div class="control-group">
	<label class="control-label" for="inputComments">Comments</label>
	<div class="controls">
	<textarea rows="5"></textarea>
	</div>
    </div>
     
    

<input type="submit" value="Submit" />

</form>
<?php

$Fname = $_REQUEST['Fname'] ;
$Lname = $_REQUEST['Lname'] ;
$tel= $_REQUEST['tel'] ;
$address= $_REQUEST['address'] ;
$email = $_REQUEST['email'] ;
$comments = $_REQUEST['comments'] ;

if (empty($Fname, $Lname, $tel, $address, $email) {
header( "Location: error.html" );
}

else {
mail( "gary.harmon1020@gmail.com", "Contact Form Results",
$Fname, $Lname, $tel, $address, $comments, "From: $email" );
header( "Location: Thankyou.html" );
}
?>
		

</html>
   
	
<?php include 'footer.php'; ?>